import { post } from '@/api/http'

// 列表查询
export const getCostListApi = (data) => post({ url: '/cost/list', data })

// 列表快捷查询导航
export const getCostCountApi = (data) => post({ url: '/cost/count', data })

// 运营成本账单
export const getCostBillApi = (data) => post({ url: '/cost/bill', data })

// 运营成本账单-导出
export const exportExcelCostBillApi = (data) => post({ url: '/cost/exportExcel', data })

// 运营成本详情
export const getCostDetailApi = (data) => post({ url: '/cost/detail', data })

// 运营成本重新申请，修改详情
export const getNewCostDetailApi = (data) => post({ url: '/cost/detailForRenew', data })

// 运营成本新增&编辑
export const editCostApi = (data) => post({ url: '/cost/edit', data })

// 审批
export const checkCostApi = (data) => post({ url: '/cost/check', data })

// 撤销
export const revokeCostApi = (data) => post({ url: '/cost/revoke', data })

// 作废
export const nullifyCostApi = (data) => post({ url: '/cost/nullify', data })

// 付款
export const payCostApi = (data) => post({ url: '/cost/pay', data })

// 导出
export const exportExcel = (data) => post({ url: '/cost/exportExcel', data })

// 新增员工银行账户信息
export const addStaffBankInfo = (data) => post({ url: '/staff/saveBank', data })

// 新增同行银行账户信息
export const addPeerBankInfo = (data) => post({ url: '/sameIndustryInfo/saveBank', data })

// 新增供应商银行账户信息
export const addSupplierBankInfo = (data) => post({ url: '/supplier/saveBank', data })

// 同行收款账号列表
export const getPeerList = (data) => post({ url: '/sameIndustryInfo/detail', data })

// 供应商收款账号列表
export const getSupplierList = (data) => post({ url: '/supplier/detail', data })

// 查询短租订单服务过的车辆列表
export const getShortCarRecord = (data) => post({ url: '/sOrder/getCarUseRecordByOrderId', data })

// 查询长租订单服务过的车辆列表
export const getLongCarRecord = (data) => post({ url: '/czsOrderInfo/getCarUseRecordByOrderId', data })

// 查询审批流程历史
export const getCheckHistoryApi = (data) => post({ url: '/cost/checkHistory', data })

// 运营成本付款金额查询
export const getListCountApi = (data) => post({ url: '/cost/listCount', data })

// 运营成本批量付款判断多个支出单的收款方是否一致
export const checkApplyIfEqualApi = (data) => post({ url: '/cost/checkApplyIfEqual', data })

// 批量付款列表查询
export const getAllFeeListApi = (data) => post({ url: '/cost/getListByIds', data })

// 批量付款表单提交
export const batchPayApi = (data) => post({ url: '/cost/batchPay', data })

// 财务打款凭证提交
export const updatePayFileApi = (data) => post({ url: '/cost/updatePayFile', data })
